package com.hc.entity;

import lombok.Data;

import java.util.*;


@Data
public class UMenu {

    private long menuId;
    private String menuName;
    private List<UMenu> parentMenu;
    private long parentId;
    private long orderNum;
    private String path;
    private String component;
    //M目录,F按钮,C菜单
    private String menuType;
    //为1则隐藏
    private String visible;
    //为1则停用
    private String status;
    private String perms;
    private Set<UMenu> subMenu=new HashSet<>();
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UMenu uMenu = (UMenu) o;
        return menuId == uMenu.menuId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuId);
    }
}
